<template>
  <el-form class="base-attrbute" label-width="80px">
    <el-form-item label="颜色">
      <el-color-picker v-model="data.color"></el-color-picker>
    </el-form-item>
    <el-form-item label="大小">
      <el-input-number v-model="data.size" :min="12" :max="72"></el-input-number>
    </el-form-item>
    <el-form-item label="内容">
      <el-input v-model="data.value"></el-input>
    </el-form-item> 
  </el-form>
</template>
<script type="text/javascript">
export default {
  props: {
    value: [Array, Object, Number, String]
  },
  computed: {
    data: {
      get: function() {
        return this.value;
      },
      set: function(value) {
        this.$emit('input', value);
      }
    }
  }

}

</script>
<style type="text/css" lang="scss">
.j-attribute-set {
  padding: 10px;
}

.el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
  margin-bottom: 10px;
}

.el-form--label-top .el-form-item__label {
  float: none;
  display: inline-block;
  text-align: left;
  padding: 0;
}

</style>
